//
//  VehicleMaintenanceStepsCell.m
//  阿帕
//
//  Created 阿帕 on 2020/1/5.
//  Copyright © 2020 GCY. All rights reserved.
//

#import "YunDanTrackCell.h"
@interface YunDanTrackCell ()
@property (weak, nonatomic) IBOutlet UIView *hLine;
@end

@implementation YunDanTrackCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    _vLineView.backgroundColor = Theme_ColorValue;
    cut(_stepNumLabel, 10);
    _stepNumLabel.backgroundColor = Theme_ColorValue;
    _hLine.backgroundColor = BackgroundColor;
    
    _desLabel = [[UILabel alloc] initWithFrame:CGRectMake(_stepNumLabel.cy_right + 10, 10, ScreenW-_stepNumLabel.cy_right-20, 50)];
    _desLabel.text = @"- - -";
    _desLabel.textColor = Light_TextColor;
    _desLabel.font = font(14);
    _desLabel.numberOfLines = 0;
    _desLabel.adjustsFontSizeToFitWidth = YES;
    [self.contentView addSubview:_desLabel];
    
    _dateLabel = [[UILabel alloc] initWithFrame:CGRectMake(_desLabel.cy_origin.x, _desLabel.cy_bottom, 300, 20)];
    _dateLabel.text = @"-";
    _dateLabel.textColor = Light_TextColor;
    _dateLabel.font = font(12);
    _dateLabel.adjustsFontSizeToFitWidth = YES;
    [self.contentView addSubview:_dateLabel];
    
}

- (void)setModel:(YunDanTrackRecordModel *)model {
    
    _model = model;
    
    _desLabel.text = CJStringWithFormat(@"%@", model.content);
    _dateLabel.text = CJStringWithFormat(@"%@", model.gmtCreated);
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
